package com.qiusuo0226.platform.pojo.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 接口访问记录 分页数据传输模型
 * @author qiusuo
 * @date 2023/4/7 9:29
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class RequestRecordPageDTO implements Serializable {

    private static final long serialVersionUID = 6223223120041353923L;

    /**
     * 当前页的数据量
     */
    private Long pageSize;

    /**
     * 数据总量
     */
    private Long total;

    /**
     * 当前页码
     */
    private Long pageNo;

    /**
     * 数据集合
     */
    private List lists;

    public void setLists(List lists) {
        List copyList = new ArrayList();
        copyList.addAll(lists);
        this.lists = copyList;
    }

    public List getLists() {
        List copyList = new ArrayList();
        copyList.addAll(lists);
        return copyList;
    }
}
